/*
 * @Author: 刘晟勇
 * @Date: 2021-10-14 18:16:15
 * @LastEditTime: 2021-10-15 11:52:44
 * @Description: home组件api
 */

import axios from "./require.js"

// 获取轮播图数据
export async function getSwipeList(callback) {
  const { data } = await axios.get('home/sliders')
  callback(data)
}

// 获取商品分类
export async function getCategoryList(callback) {
  const { data } = await axios.get('home/category')
  callback(data)
}

// 获取商品列表
export async function getFloorList(callback) {
  const { data } = await axios.get('home/floorlist')
  callback(data)
}